/**
 * 
 */
package com.swim.natatoriuminfo.entity;

import org.hibernate.validator.constraints.NotBlank;

import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 教练风采Entity
 * @author ljw
 * @version 2022-08-15
 */
@Table(name="t_coach_mien", alias="a", columns={
		@Column(name="id", attrName="id", label="唯一标识", isPK=true),
		@Column(name="natatorium_info_id", attrName="natatoriumInfoId", label="游泳馆信息id", queryType = QueryType.EQ),
		@Column(name="name", attrName="name", label="教练姓名", queryType=QueryType.LIKE),
		@Column(name="tags", attrName="tags", label="标签id", comment="标签id(多个用逗号隔开)"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class CoachMien extends DataEntity<CoachMien> {
	
	private static final long serialVersionUID = 1L;
	private String natatoriumInfoId;		// 游泳馆信息id
	private String name;		// 教练姓名
	private String tags;		// 标签id(多个用逗号隔开)
	
	//################## 附加字段 #######################
	private String coachImageUrl;		// 教练图片url
	private List<String> tagList;		// 标签集合
	
	public CoachMien() {
		this(null);
	}

	public CoachMien(String id){
		super(id);
	}
	
	public String getNatatoriumInfoId() {
		return natatoriumInfoId;
	}

	public void setNatatoriumInfoId(String natatoriumInfoId) {
		this.natatoriumInfoId = natatoriumInfoId;
	}
	
	@NotBlank(message="教练姓名不能为空")
	@Length(min=0, max=10, message="教练姓名长度不能超过 10 个字符")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@NotBlank(message="标签id不能为空")
	@Length(min=0, max=640, message="标签id长度不能超过 640 个字符")
	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public String getCoachImageUrl() {
		return coachImageUrl;
	}

	public void setCoachImageUrl(String coachImageUrl) {
		this.coachImageUrl = coachImageUrl;
	}

	public List<String> getTagList() {
		return tagList;
	}

	public void setTagList(List<String> tagList) {
		this.tagList = tagList;
	}
	
}